package com.xxgc.springboot.service;

import com.xxgc.springboot.entity.TaskInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.quartz.SchedulerException;

/**
 * <p>
 * 定时任务表 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-09-20
 */
public interface ITaskInfoService extends IService<TaskInfo> {
    //新增定时任务
    int saveOrTask(TaskInfo taskInfo) throws ClassNotFoundException, SchedulerException;
    //删除定时任务
    int removeTaskById(Integer id) throws SchedulerException;
    //暂停任务
    int suspendTaskById(Integer id) throws SchedulerException;
    //继续任务
    int runTaskById(Integer id) throws SchedulerException;
}
